/* File:        	PDPConfiguration.java
* Package:			org.esi.authz.pdp.config
* Created:      	29-abr-2011
* Last Changed: 	0:08:10
* Author:       	Borja Urkizu borja.urquizu@tecnalia.com
*
*   
* History:
*  Revision 1.0.0.0  
* 
* Tecnalia Research and Innovation
*/
// Created:      24-sep-2010
// Last Changed: 11:43:19
// Author:       <A HREF="mailto:borja.urquizu@esi.es">[Name]</A>
//
// This code is done by Borja Urkizu for TECNLIA - ESI (Europena Software Institute)
// 
//  
// History:
//  Log: javaCodingStd.html,v $
//  Revision 1.1.1.1  24-sep-2010 11:43:19  
//  initial 
//
package com.tecnalia.authz.pdp.config;

// TODO: Auto-generated Javadoc
/**
 * The Class PDPConfiguration.
 */
public class PDPConfiguration {

	/** The pdp config. */
	private PDPConfig pdpConfig;
	
	/** The file data store. */
	private FileDataStore fileDataStore;

	/**
	 * Instantiates a new pDP configuration.
	 */
	public PDPConfiguration() {
		this.setPdpConfig(new PDPConfig());
		this.setFileDataStore(new FileDataStore());
	}  	
	
	/**
	 * Instantiates a new pDP configuration.
	 *
	 * @param pdpCfg the pdp cfg
	 * @param policyCfg the policy cfg
	 */
	public PDPConfiguration(String pdpCfg, String policyCfg) {
		this.setPdpConfig(new PDPConfig(pdpCfg));
		this.setFileDataStore(new FileDataStore(policyCfg));
	}   	

	/**
	 * Sets the pdp config.
	 *
	 * @param pdpConfig the new pdp config
	 */
	public void setPdpConfig(PDPConfig pdpConfig) {
		this.pdpConfig = pdpConfig;
	}
	
	/**
	 * Gets the pdp config.
	 *
	 * @return the pdp config
	 */
	public PDPConfig getPdpConfig() {
		return pdpConfig;
	}

	/**
	 * Sets the file data store.
	 *
	 * @param fileDataStore the new file data store
	 */
	public void setFileDataStore(FileDataStore fileDataStore) {
		this.fileDataStore = fileDataStore;
	}

	/**
	 * Gets the file data store.
	 *
	 * @return the file data store
	 */
	public FileDataStore getFileDataStore() {
		return fileDataStore;
	}
}



